< previous page page_528 next page >

Page 528
It's probably fair to say that most business-oriented computer applications work with data in one form or another. This data often is stored in one or more databases. Visual Basic can create powerful data management programs with a little planning and effort. The most fundamental part of that planning is in how the data is structured. A poorly designed database can doom even the most well-intentioned program from the start. On the other hand, a well-designed database can make a programmer's life much easier.
Creating an organized data structure requires you to learn about two separate tasks. First, you must learn about how to design a database. In the design, you decide what data goes in the database and how it will be organized. Second, you must learn how to translate the design into the actual database. You can do so in a variety of ways. In this chapter, you examine many of the considerations involved in designing databases and their structures. You can apply these concepts to any type of database, not just those that you may be designing to use in your Visual Basic applications.
Designing a Database
Like most tasks, building a database starts with a design. After all, you wouldn't try to build a house without a blueprint, and most people wouldn't attempt to prepare a new dish without a recipe. Like these other tasks, having a good design for your database is a major first step in creating a successful project.
In designing a database application, you must set up not only the program's routines for maximum performance, but you must pay attention also to the physical and logical layout of the data storage. A good database design does the following:
Provides minimum search times when locating specific records
Stores data in the most efficient manner possible to keep the database from growing too large
Makes data updates as easy as possible
Is flexible enough to allow inclusion of new functions required of the program
Design Objectives
When you're creating the design for your database, you must keep several objectives in mind. Although meeting all these design objectives is desirable, sometimes they are mutually exclusive. The primary design objectives are as follows:
Eliminate redundant data
Be able to locate individual records quickly
Make enhancements to the database easy to implement
Keep the database easy to maintain

 
< previous page page_528 next page >